import axios from "@/http.js";
// 用户自选接口

// 设置交易密码
export const post_tradePwd = (data) => {
    return axios.request({
        url: '/user.v1/user/setTradePwd',
        method: 'post',
        data
    })
}
// 检测交易密码
export const post_check_tradePwd = (data) => {
    return axios.request({
        url: '/user.v1/user/checkTradePwd',
        method: 'post',
        data
    })
}
// 忘记交易密码
export const post_forget_tradePwd = (data) => {
    return axios.request({
        url: '/user.v1/user/forgetTradePwd',
        method: 'post',
        data
    })
}
// 校验用户密码
export const post_check_password = (data) => {
    return axios.request({
        url: '/user.v1/validate/checkPassword',
        method: 'post',
        data
    })
}
// 会员登陆
export const post_login = (data) => {
    return axios.request({
        url: '/user.v1/user/login',
        method: 'post',
        data
    })
}
// 手机验证码登录
export const post_mobile_login = (data) => {
    return axios.request({
        url: '/user.v1/user/mobilelogin',
        method: 'post',
        data
    })
}
// 注册会员
export const post_register = (data) => {
    return axios.request({
        url: '/user.v1/user/register',
        method: 'post',
        data
    })
}
// 注销登录
export const post_logout = (data) => {
    return axios.request({
        url: '/user.v1/user/logout',
        method: 'post',
        data
    })
}
// 修改个人信息
export const post_profile = (data) => {
    return axios.request({
        url: '/user.v1/user/profile',
        method: 'post',
        data
    })
}
// 注册密码设置
export const post_setPwd = (data) => {
    return axios.request({
        url: '/user.v1/user/setPwd',
        method: 'post',
        data
    })
}
// 修改手机号
export const post_change_mobile = (data) => {
    return axios.request({
        url: '/user.v1/user/changemobile',
        method: 'post',
        data
    })
}
// 修改密码
export const post_changePwd = (data) => {
    return axios.request({
        url: '/user.v1/user/changePwd',
        method: 'post',
        data
    })
}
// 重置密码
export const post_resetpwd = (data) => {
    return axios.request({
        url: '/user.v1/user/resetpwd',
        method: 'post',
        data
    })
}
// 插入历史记录
export const post_history = (data) => {
    return axios.request({
        url: '/user.v1/search/history',
        method: 'post',
        data
    })
}
// 获取股票搜索历史
export const get_history = (params) => {
    return axios.request({
        url: '/user.v1/search/history',
        method: 'get',
        params: params
    })
}
// 删除搜索历史
export const post_delete_history = (data) => {
    return axios.request({
        url: '/user.v1/search/delete',
        method: 'post',
        data
    })
}
// 添加自选股
export const post_insert = (data) => {
    return axios.request({
        url: '/user.v1/optional/insert',
        method: 'post',
        data
    })
}
// 删除自选股
export const post_optional_delete = (data) => {
    return axios.request({
        url: '/user.v1/optional/delete',
        method: 'post',
        data
    })
}
// 自选股排序
export const post_optional_sort = (data) => {
    return axios.request({
        url: '/user.v1/optional/sort',
        method: 'post',
        data
    })
}
// 提交引导步骤
export const post_guide_step = (data) => {
    return axios.request({
        url: '/user.v1/user/guideStep',
        method: 'post',
        data
    })
}
// 获取引导步骤
export const get_guide_step = (params) => {
    return axios.request({
        url: '/user.v1/user/guideStep',
        method: 'get',
        params: params
    })
}
// 交易账号登录
export const post_trade_login = (data) => {
    return axios.request({
        url: '/user.v1/account/login',
        method: 'post',
        data
    })
}
// 更新登录状态
export const post_account_refresh = (data) => {
    return axios.request({
        url: '/user.v1/account/refresh',
        method: 'post',
        data
    })
}
// 重置交易密码验证码
export const post_reset_tradePwd = (data) => {
    return axios.request({
        url: '/user.v1/account/reset/pass',
        method: 'post',
        data
    })
}
// 发送邮件
export const post_reset_tradeEmail = (data) => {
    return axios.request({
        url: '/user.v1/account/send/email',
        method: 'post',
        data
    })
}
// 添加|修改预警
export const post_warn = (data) => {
    return axios.request({
        url: '/user.v1/warn/setWarn',
        method: 'post',
        data
    })
}
// 删除预警
export const post_delete_warn = (data) => {
    return axios.request({
        url: '/user.v1/warn/delete',
        method: 'post',
        data
    })
}
// 获取预警详情
export const get_warn = (params) => {
    return axios.request({
        url: '/user.v1/warn/getWarn',
        method: 'get',
        params: params
    })
}
// 获取预警列表
export const get_warn_list = (params) => {
    return axios.request({
        url: '/user.v1/warn/warnList',
        method: 'get',
        params: params
    })
}
// 添加评论
export const post_comment = (data) => {
    return axios.request({
        url: '/user.v1/comment/setComment',
        method: 'post',
        data
    })
}
// 添加回复
export const post_reply = (data) => {
    return axios.request({
        url: '/user.v1/comment/setReply',
        method: 'post',
        data
    })
}
// 评论点赞|取消点赞
export const post_give_fabulous = (data) => {
    return axios.request({
        url: '/user.v1/comment/giveFabulous',
        method: 'post',
        data
    })
}
// 用户消息删除
export const post_notice_delete = (data) => {
    return axios.request({
        url: '/user.v1/notice/delete',
        method: 'post',
        data
    })
}
// 一键全读POST读取全部
export const post_notice_readAll = (data) => {
    return axios.request({
        url: '/user.v1/notice/readAll',
        method: 'post',
        data
    })
}
// 一键全读GRT获取全部未读条数
export const get_readAll = (params) => {
    return axios.request({
        url: '/user.v1/notice/readAll',
        method: 'get',
        params: params
    })
}
// 个人中心
export const get_account_index = (params) => {
    return axios.request({
        url: '/user.v1/user/index',
        method: 'get',
        params: params
    })
}
// 申请融资账户
export const get_apply_finance_ccount = (params) => {
    return axios.request({
        url: '/user.v1/user/applyFinanceAccount',
        method: 'get',
        params: params
    })
}
// 股票搜索
export const get_search = (params) => {
    return axios.request({
        url: '/user.v1/search/index',
        method: 'get',
        params: params
    })
}
// 自选股列表
export const get_optional = (params) => {
    return axios.request({
        url: '/user.v1/optional/index',
        method: 'get',
        params: params
    })
}
// 我的行情卡
export const get_my_quotation = (params) => {
    return axios.request({
        url: '/user.v1/user/myQuotation',
        method: 'get',
        params: params
    })
}
// 评论回复列表
export const get_comment = (params) => {
    return axios.request({
        url: '/user.v1/comment/index',
        method: 'get',
        params: params
    })
}
// 用户消息列表
export const get_notice_list = (params) => {
    return axios.request({
        url: '/user.v1/notice/index',
        method: 'get',
        params: params
    })
}
// 消息类型列表
export const get_type_list = (params) => {
    return axios.request({
        url: '/user.v1/notice/typeList',
        method: 'get',
        params: params
    })
}
// 用户消息详情
export const get_notice_detail = (params) => {
    return axios.request({
        url: '/user.v1/notice/detail',
        method: 'get',
        params: params
    })
}
